import React from 'react'
import { Grids } from 'react-weui'

export default class SortList extends React.Component {
	constructor(props) {
		super(props)
    }
	render() {
    const { storeId, sortsData } = this.props;
	const iconStyle = {
		fontSize: '27px'
	}
    const data = sortsData.map(function(item) {
        return {
            icon: <i className="iconfont icon-huanfu" style={iconStyle}></i>,
            label: item.get_class_detail.name,
            href: `sort/${item.classId}`
        }
    })
		return (
		    <Grids data={data} />
		);
	}
}
